class @LogOnModel extends Backbone.Model
    defaults:
        Email: ''
        Password: ''
        RememberMe: ''
        ReturnUrl: ''
        Login: ''
        Errors: []
        SuccessMessage: ''

    url: SiteMap.Account.LogOn

    parse: (response)->
        {
            Email: response.Login
            Password: response.Password
            RememberMe: response.RememberMe
            SuccessMessage: response.SuccessMessage
            Errors: response.Errors
            Login: response.Login
            ReturnUrl: response.ReturnUrl
        }